using System;
using System.Collections;
using InfoJetSoft.Service.Entity;
using InfoJetSoft.Service.Util;
using InfoJetSoft.Service.Worker;

namespace InfoJetSoft.Service
{

	public class InfoJetForm
	{
		private bool error = false;
		private string message = null;
		private bool valid = false;
		private string xhtml = null;
		private string xml = null;
		private Form form = null;

		public InfoJetForm( Form innerForm )
		{
			this.form = innerForm;
		}

		public Form InnerForm
		{
			get
			{
				return this.form;
			}
		}
		
		public bool Error {
			get {
				return error;
			}
			set {
				error = value;
			}
		}

		public string Message {
			get {
				return message;
			}
			set {
				message = value;
			}
		}

		public bool Valid {
			get {
				return valid;
			}
			set {
				valid = value;
			}
		}

		public string Xhtml {
			get {
				return xhtml;
			}
			set {
				xhtml = value;
			}
		}

		public string Xml {
			get {
				return xml;
			}
			set {
				xml = value;
			}
		}

		public ArrayList FindPostedFiles()
		{
			return FileAttachmentFinder.findFileAttachmentList( this.form );
		}

	}
}
